﻿using DFGK_WMS.Model.Enum;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Dto
{
    public class WcsTaskResultDto
    {
        public int ReturnStatus { get; set; }

        public string ReturnInfo { get; set; }

        public string MsgTime { get; set; }

        /// <summary>
        /// 0:成功 1:失败 2:入参错误
        /// </summary>
        public EmApiResCode Code { get; set; }

        public object Data { get; set; }
        public string Msg { get; set; }
    }

    /// <summary>
    /// 太合机械爪入库返回参数
    /// </summary>
    public class WcsTaskResultDtos
    {
        /// <summary>
        /// 任务号
        /// </summary>
        public string TaskCode { get; set; }

        /// <summary>
        /// 站台
        /// </summary>
        public EmStation Station { get; set; }

        /// <summary>
        /// 入库时为终点
        /// 出库时为起点
        /// 层
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// 巷
        /// 入库时为终点
        /// 出库时为起点
        /// </summary>
        public int Tunnel { get; set; }

        /// <summary>
        /// 列
        /// 入库时为终点
        /// 出库时为起点
        /// </summary>
        public int Bay { get; set; }

        /// <summary>
        /// 排
        /// 入库时为终点
        /// 出库时为起点
        /// </summary>
        public int Row { get; set; }

        public string Palletcode { get; set; }

        public decimal? Count { get; set; }
    }

    /// <summary>
    /// 太合机械爪出库入参
    /// </summary>
    public class OutTaskNoticeReqDto
    { 
        /// <summary>
        /// 出库单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 物料Code
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 要出的托盘数量
        /// </summary>
        public int PalletQty { get; set; }
    }
}
